package day0605;

import java.util.Arrays;

public class Test9 {

    public static void main(String[] args) {
        //1.数组书写格式
        int[] ary={1,2,3,5};
        //         0 1 2 3

        //2.从数组中获取一个元素值
        //变量名[元素序号]
        System.out.println(ary[2]);//3

        //3.修改一个元素值(给数组的某个位置存储一个值)
        //变量名[元素序号] =新值;
        ary[2]=0;
        System.out.println(ary[2]);//0


        System.out.println(  Arrays.toString(ary)  );

    }




}
